package com.youlai.boot.core.tenant.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 租户申请视图对象
 *
 * @author haoxr
 * @since 3.0.0
 */
@Schema(description = "租户申请视图对象")
@Data
public class TenantApplicationVO {

    @Schema(description = "申请ID")
    private Long id;

    @Schema(description = "申请人姓名")
    private String applicantName;

    @Schema(description = "申请人手机号")
    private String applicantMobile;

    @Schema(description = "申请人邮箱")
    private String applicantEmail;

    @Schema(description = "租户名称")
    private String tenantName;

    @Schema(description = "租户编码")
    private String tenantCode;

    @Schema(description = "租户ID")
    private Long tenantId;

    @Schema(description = "营业执照号")
    private String businessLicense;

    @Schema(description = "所属行业")
    private String industry;

    @Schema(description = "公司规模")
    private String companySize;

    @Schema(description = "联系地址")
    private String contactAddress;

    @Schema(description = "申请说明")
    private String description;

    @Schema(description = "申请状态：PENDING-待审核 APPROVED-审核通过 REJECTED-审核拒绝 COMPLETED-已完成")
    private String status;

    @Schema(description = "状态描述")
    private String statusDesc;

    @Schema(description = "提交时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime submitTime;

    @Schema(description = "审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime reviewTime;

    @Schema(description = "审核人姓名")
    private String reviewerName;

    @Schema(description = "审核意见")
    private String reviewComment;

    @Schema(description = "拒绝原因")
    private String rejectReason;

    @Schema(description = "数据库是否已初始化")
    private Integer dbInitialized;

    @Schema(description = "超级管理员是否已创建")
    private Integer adminCreated;

    @Schema(description = "配置完成时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime configTime;

    @Schema(description = "配置备注")
    private String configComment;
}

